/**
 * Created by henian.xu on 2018/11/22.
 *
 */

const { Nuxt } = require('nuxt');
const NUXT = Symbol('Application#nuxt');
const config = require('../../config/config.nuxt');
const nuxt = new Nuxt(config); // FIXME nuxt 是有生命周期的应该处理

module.exports = {
    get nuxt() {
        if (!this[NUXT]) {
            this[NUXT] = nuxt;
        }
        return this[NUXT];
    },
};
